package com.nandi.deviceinstall.model


import com.nandi.deviceinstall.bean.BaseObjectBean
import com.nandi.deviceinstall.bean.LoginBean
import com.nandi.deviceinstall.contract.LoginContract
import com.nandi.deviceinstall.net.RetrofitClient

import io.reactivex.Flowable



class LoginModel : LoginContract.Model {
    private val apiService = RetrofitClient.getInstance()!!.api!!
    override fun login(username: String, password: String): Flowable<LoginBean> {
        return apiService.login("Basic dGVzdDp0ZXN0","password","server",
                username, password)
    }
}
